package cn.edu.scau.cmi.liuxintong.abstractFactory;

import cn.edu.scau.cmi.liuxintong.simpleFactoryMeyhod.Meat;
import cn.edu.scau.cmi.liuxintong.simpleFactoryMeyhod.beef;
import cn.edu.scau.cmi.liuxintong.simpleFactoryMeyhod.chicken;
import cn.edu.scau.cmi.liuxintong.simpleFactoryMeyhod.prok;

public class TianbangFactory implements Factory{
	public String getMeet(String option) {
		Meat  meat=null;
		String getMeat = null;
		if(option.compareTo("prok")==0) {
			meat=  new prok();
			getMeat="天邦"+meat.getMeat();
			}
		else if(option.compareTo("beef")==0) {
	    	meat=  new beef();
	    	getMeat="天邦"+meat.getMeat();
	    }
		else if(option.compareTo("chicken")==0) {
	    	meat= new chicken();
	    	getMeat="天邦"+meat.getMeat();
	    }
		else getMeat="天邦没有这种肉";
		return getMeat;	
		}
}
